package User;

import IOpearation.*;

import java.util.Scanner;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-12-24
 * Time:10:56
 */
public class Admin extends User{
    private String name;
    public Admin(String name){
        super(name);
        this.name = name;
        this.ioPearations = new IOPearation[] {
                new ExitOpearation(),
                new FindOpearation(),
                new AddOpearation(),
                new DelOpearation(),
                new DisplayOpearation()
        };
    }

    @Override
    public int menu() {
        System.out.println("====================管理员页面=======================");
        System.out.println("欢迎来到图书管理系统!");
        System.out.println("1.查找图书");
        System.out.println("2.新增图书");
        System.out.println("3.删除图书");
        System.out.println("4.打印图书");
        System.out.println("0.退出系统");
        System.out.println("===================================================");
        System.out.println("请做出你的选择:");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
